Highcharts is not defined 您所在的位置:网站首页 Highcharts is not defined Highcharts is not defined

Highcharts is not defined

2024-07-16 06:12| 来源: 网络整理| 查看: 265

Hi,

I made a custom directive in angular angular.module('myModule', []).directive('hcPieChart', function () { return { restrict: 'E', template: '', scope: { title: '@', data: '=' }, link: function (scope, element) { Highcharts.chart(element[0], { chart: { type: 'pie' }, title: { text: scope.title }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.1f} %' } } }, series: [{ data: scope.data }] }); } }; })

and have included

in my index.html . But while running my application I am getting "Highcharts is not defined in directive". Kindly tell me what am I doing wrong?



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有